package com.luo.pojo.question.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author bin.cn
 * @since 2023-01-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("question")
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 帖子的标题
     */
    @TableField("title")
    private String title;

    /**
     * 帖子内容
     */
    @TableField("content")
    private String content;

    /**
     * 发帖者昵称
     */
    @TableField("nickname")
    private String nickname;

    /**
     * 发帖者id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 状态，0-》未审核，1-》已审核
     */
    @TableField("status")
    private Integer status;

    /**
     * 浏览量
     */
    @TableField("page_views")
    private Integer pageViews;

    /**
     * 收藏数
     */
    @TableField("collect_views")
    private Integer collectViews;

    /**
     * 回复(评论)数
     */
    @TableField("comment_views")
    private Integer commentViews;

    /**
     * 该问题是否公开，0-》否，1-》是
     */
    @TableField("public_status")
    private Integer publicStatus;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 数据最后修改时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    /**
     * 问题是否删除 0-》未删除，1-》已删除
     */
    @TableField("delete_status")
    private Integer deleteStatus;

    @TableField("tag_id")
    private Integer tagId;

    @TableField("pictures")
    private String pictures;


}
